Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 48 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
🤖 Agent note · handed off (superseded)
Salvage note (§8): diffed this PR's added lines against #5026's line-by-line (comment-stripped) — the rejection guard ( |
|
Superseded by #5026, which re-implements this fix at the post-move path . Salvage verdict recorded in the note above: nothing unique remains diffable on this PR. |
The FLOAT64 decoder reversed the sort transform and rejected NaN but admitted the stored form of -0.0, which the encoder can never emit: push_f64 canonicalizes both zero signs to +0.0. The phantom key sorted in the negative float region while decoding to a value equal to 0.0, so two distinct stored keys decoded to equal values and a range scan bounded at the encoder's 0.0 key never saw it. Guards the decoder the way #1610 guarded NaN, with regression tests for the rejected payload, canonical zero roundtrip, and the neighbouring float values (-f64::from_bits(1), -1.5, ±infinity). Path is the post-workspace-move pkgs/id/crates/id-core/src/tuple.rs; the earlier PR #3436 targeted the old pkgs/id/src/tuple.rs path.
Summary
Reject the unreachable stored
-0.0payload while preserving canonical zero encoding and other float values. Fixes #2421.Evidence
[0x21, 0x7F, 0xFF x7].cargo test --manifest-path pkgs/id/Cargo.toml --no-default-features --lib tuple::tests— 52 passed.git diff --check— clean.--librun stopped at an unrelated stack overflow incli::tests::test_cli_parse_cat; the packet command without--libalso tries integration tests requiring the disabledworldfeature.Merge Danger
Door: two-way
Blast Radius: low — FLOAT64 decoding only; encoder and other tuple branches are unchanged.
Need help on this PR? Tag
@codesmith-botwith what you need.